package com.dj.portal.dao;


import com.dj.portal.pojo.po.User;
import com.dj.portal.pojo.po.UserExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Long uid);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Long uid);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
	
/*
	long countUser(@Param("userQuery") UserQuery userQuery);
    List<User> listUserBypage(@Param("pagep") Pagep pagep, @Param("userQuery") UserQuery userQuer);
*/

    boolean deleteId(Long uid);

    User selectProductByPid(Long uid);


    List<User> selectByuid(User u);
}